package com.zzxy.spring.service.impl;

import com.zzxy.spring.dao.SpringDao;
import com.zzxy.spring.entity.User;
import com.zzxy.spring.service.SpringService;

public class SpringServiceImpl implements SpringService {
    private SpringDao springDao;

    public SpringDao getSpringDao(){
        return  springDao;
    }

    public void setSpringDao(SpringDao springDao) {
        this.springDao = springDao;
    }

    @Override
    public int addUser(User user) {
        springDao.insert(user);
        return 0;
    }
}